<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="lib.css" type='text/css' />
<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
<link rel='start' href='../index.html' title='Python documentation Index' />
<link rel="first" href="lib.html" title='Python library Reference' />
<link rel='contents' href='contents.html' title="Contents" />
<link rel='index' href='genindex.html' title='Index' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="next" href="module-mhlib.html" />
<link rel="prev" href="module-mailcap.html" />
<link rel="parent" href="netdata.html" />
<link rel="next" href="mailbox-objects.html" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name='aesop' content='information' />
<title>7.3 mailbox -- Manipulate mailboxes in various formats</title>
</head>
<body>
<div class="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="7.2 mailcap  "
  href="module-mailcap.html"><img src='../icons/previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></a></td>
<td class='online-navigation'><a rel="parent" title="7. internet Data Handling"
  href="netdata.html"><img src='../icons/up.png'
  border='0' height='32'  alt='Up one Level' width='32' /></a></td>
<td class='online-navigation'><a rel="next" title="7.3.1 mailbox objects"
  href="mailbox-objects.html"><img src='../icons/next.png'
  border='0' height='32'  alt='Next Page' width='32' /></a></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='../icons/contents.png'
  border='0' height='32'  alt='Contents' width='32' /></a></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
  border='0' height='32'  alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='../icons/index.png'
  border='0' height='32'  alt='Index' width='32' /></a></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="module-mailcap.html">7.2 mailcap  </a>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="netdata.html">7. Internet Data Handling</a>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="mailbox-objects.html">7.3.1 Mailbox objects</a>
</div>
<hr /></div>
</div>
<!--End of Navigation Panel-->

<h1><a name="SECTION009300000000000000000">
7.3 <tt class="module">mailbox</tt> --
          Manipulate mailboxes in various formats</a>
</h1>

<p>
<a name="module-mailbox"></a>

<p>
This module defines two classes, <tt class="class">Mailbox</tt> and <tt class="class">Message</tt>, for
accessing and manipulating on-disk mailboxes and the messages they contain.
<tt class="class">Mailbox</tt> offers a dictionary-like mapping from keys to messages.
<tt class="class">Message</tt> extends the <tt class="module">email.Message</tt> module's <tt class="class">Message</tt>
class with format-specific state and behavior. Supported mailbox formats are
Maildir, mbox, MH, Babyl, and MMDF.

<p>
<div class="seealso">
  <p class="heading">See Also:</p>

    <dl compact="compact" class="seemodule">
    <dt>Module <b><tt class="module"><a href="module-email.html">email</a></tt>:</b>
    <dd>Represent and manipulate messages.
  </dl>
</div>

<p>

<p><br /></p><hr class='online-navigation' />
<div class='online-navigation'>
<!--Table of Child-Links-->
<a name="CHILD_LINKS"><strong>Subsections</strong></a>

<ul class="ChildLinks">
<li><a href="mailbox-objects.html">7.3.1 <tt class="class">Mailbox</tt> objects</a>
<ul>
<li><a href="mailbox-maildir.html">7.3.1.1 <tt class="class">Maildir</tt></a>
<li><a href="mailbox-mbox.html">7.3.1.2 <tt class="class">mbox</tt></a>
<li><a href="mailbox-mh.html">7.3.1.3 <tt class="class">MH</tt></a>
<li><a href="mailbox-babyl.html">7.3.1.4 <tt class="class">Babyl</tt></a>
<li><a href="mailbox-mmdf.html">7.3.1.5 <tt class="class">MMDF</tt></a>
</ul>
<li><a href="mailbox-message-objects.html">7.3.2 <tt class="class">Message</tt> objects</a>
<ul>
<li><a href="mailbox-maildirmessage.html">7.3.2.1 <tt class="class">MaildirMessage</tt></a>
<li><a href="mailbox-mboxmessage.html">7.3.2.2 <tt class="class">mboxMessage</tt></a>
<li><a href="mailbox-mhmessage.html">7.3.2.3 <tt class="class">MHMessage</tt></a>
<li><a href="mailbox-babylmessage.html">7.3.2.4 <tt class="class">BabylMessage</tt></a>
<li><a href="mailbox-mmdfmessage.html">7.3.2.5 <tt class="class">MMDFMessage</tt></a>
</ul>
<li><a href="node176.html">7.3.3 Exceptions</a>
<li><a href="mailbox-deprecated.html">7.3.4 Deprecated classes and methods</a>
<li><a href="mailbox-examples.html">7.3.5 Examples</a>
</ul>
<!--End of Table of Child-Links-->
</div>

<div class="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="7.2 mailcap  "
  href="module-mailcap.html"><img src='../icons/previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></a></td>
<td class='online-navigation'><a rel="parent" title="7. internet Data Handling"
  href="netdata.html"><img src='../icons/up.png'
  border='0' height='32'  alt='Up one Level' width='32' /></a></td>
<td class='online-navigation'><a rel="next" title="7.3.1 mailbox objects"
  href="mailbox-objects.html"><img src='../icons/next.png'
  border='0' height='32'  alt='Next Page' width='32' /></a></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='../icons/contents.png'
  border='0' height='32'  alt='Contents' width='32' /></a></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
  border='0' height='32'  alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='../icons/index.png'
  border='0' height='32'  alt='Index' width='32' /></a></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="module-mailcap.html">7.2 mailcap  </a>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="netdata.html">7. Internet Data Handling</a>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="mailbox-objects.html">7.3.1 Mailbox objects</a>
</div>
</div>
<hr />
<span class="release-info">Release 2.5.1, documentation updated on 18th April, 2007.</span>
</div>
<!--End of Navigation Panel-->
<address>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</address>
</body>
</html>
